<div class="alert alert-info">
    版主或社区超级管理员不受条件控制
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">允许非股东浏览</label>
    <div class="col-sm-9 col-xs-12">
        {ife 'sns.board' $item}
        <label class='radio-inline'>
            <input type='radio' name='notpartner' value='0' {if $item['notpartner']==0}checked{/if} /> 允许
        </label>
        <label class='radio-inline'>
            <input type='radio' name='notpartner' value='1' {if $item['notpartner']==1}checked{/if} /> 禁止
        </label>
        {else}
        <div class='form-control-static'>{if empty($item['notpartner'])}允许{else}禁止{/if}</div>
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">股东等级浏览权限</label>
    <div class="col-sm-9 col-xs-12 chks">

        {ife 'sns.board' $item}
        <select name='showpartnerlevels[]' class='form-control select2' multiple=''>
            <option value="0"  {if $item['showpartnerlevels']!='' && is_array($item['showpartnerlevels'])  && in_array('0', $item['showpartnerlevels'])}selected{/if}>普通等级</option>
            {loop $partnerlevels $level}
            <option value="{$level['id']}" {if is_array($item['showpartnerlevels']) && in_array($level['id'], $item['showpartnerlevels'])}selected{/if}>{$level['levelname']}</option>
            {/loop}
        </select>
        <span class='help-block'>不设置默认全部股东等级</span>

        {else}
        <div class='form-control-static'>
            {if $item['showpartnerlevels']==''}
            {if empty( $item['notagent'])}全部股东等级{else}禁止非股东浏览{/if}
            {else}
            {if $item['showpartnerlevels']!='' && is_array($item['showpartnerlevels']) && in_array('0', $item['showpartnerlevels'])}
            {php echo empty($shop['levelname'])?'普通等级':$shop['levelname']};
            {/if}
            {loop $partnerlevels $level}
            {if $item['showpartnerlevels']!='' && is_array($item['showpartnerlevels']) && in_array($level['id'], $item['showpartnerlevels'])}
            {$level['levelname']};
            {/if}
            {/loop}
            {/if}
        </div>

        {/if}
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label">允许非股东发帖</label>
    <div class="col-sm-9 col-xs-12">
        {ife 'sns.board' $item}
        <label class='radio-inline'>
            <input type='radio' name='notglobonuspost' value='0' {if $item['notglobonuspost']==0}checked{/if} /> 允许
        </label>
        <label class='radio-inline'>
            <input type='radio' name='notglobonuspost' value='1' {if $item['notglobonuspost']==1}checked{/if} /> 禁止
        </label>
        {else}
        <div class='form-control-static'>{if empty($item['notglobonuspost'])}允许{else}禁止{/if}</div>
        {/if}
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">股东等级发帖权限</label>
    <div class="col-sm-9 col-xs-12 chks">
        {ife 'sns.board' $item}
        <select name='postpartnerlevels[]' class='form-control select2' multiple=''>
            <option value="0"  {if $item['postpartnerlevels']!='' && is_array($item['postpartnerlevels'])  && in_array('0', $item['postpartnerlevels'])}selected{/if}>普通等级</option>
            {loop $partnerlevels $level}
            <option value="{$level['id']}" {if is_array($item['postpartnerlevels']) && in_array($level['id'], $item['postpartnerlevels'])}selected{/if}>{$level['levelname']}</option>
            {/loop}
        </select>
        <span class='help-block'>不设置默认全部股东等级</span>
        {else}
        <div class='form-control-static'>
            {if $item['postpartnerlevels']==''}
            {if empty( $item['notagentpost'])}全部股东等级{else}禁止非股东浏览{/if}
            {else}
            {if $item['postpartnerlevels']!='' && is_array($item['postpartnerlevels']) && in_array('0', $item['postpartnerlevels'])}
            {php echo empty($shop['levelname'])?'普通等级':$shop['levelname']};
            {/if}
            {loop $levels $level}
            {if $item['postpartnerlevels']!='' && is_array($item['postpartnerlevels']) && in_array($level['id'], $item['postpartnerlevels'])}
            {$level['levelname']};
            {/if}
            {/loop}
            {/if}
        </div>

        {/if}


    </div>
</div>
